package com.kim.bookshop.order.service;

import java.util.List;

import com.kim.bookshop.order.bean.Order;
import com.kim.bookshop.order.bean.OrderItem;

import exception.BookShopException;

public interface OrderService {
	//新增订单
	public void addOrder(Order order);
	
	//我的订单
	public List<Order> myOrders(String uid);
	
	//加载订单
	public Order load(String oid);
	
	//确认收货
	public void confirm(String oid) throws BookShopException;
	
	//订单支付
	public void pay(String oid);
	
	//获取所有订单
	public List<Order> findAll();
	
	//发货
	public void deliver(String oid) throws BookShopException;
	
	//未付款订单
	public List<Order> unpayorder();
	
	//已付款订单
	public List<Order> paidorder();
	
	//未确认收货订单
	public List<Order> unconfirm();
	
	//交易成功订单
	public List<Order> success();
}
